
                <!-- BEGIN Page Title -->
                <div class="page-title">
                    <div>
                        <h1><i class="icon-file-alt"></i> Category</h1>
                        <h4>Category !</h4>
                    </div>
                </div>
                <!-- END Page Title -->

                <!-- BEGIN Main Content -->
                <div class="row-fluid">
                    <div class="span12">
                        <div class="box">
                            <div class="box-title">
                                <h3><i class="icon-file"></i> <?php echo $box_title; ?></h3>
                                <div class="box-tool">
                                    <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
                                </div>
                            </div>
                            
                            <div class="box-content">
                            
<form method="POST" class="form-horizontal form-bordered" action="<?php echo $link_url; ?>">                            

                                    <div class="control-group">
                                        <label class="control-label" for="textfield4">Code</label>
                                        <div class="controls">
                                            <input type="text" class="input-large" value="<?php echo h($rowCat['code']); ?>" id="code" name="code">
                                        </div>
                                    </div>
			                                    
                                    <div class="control-group">
                                        <label class="control-label" for="textfield4">Parent Code</label>
                                        <div class="controls">
                                            <input type="text" class="input-large" value="<?php echo h($rowCat['parent_code']); ?>" id="parent_code" name="parent_code">
                                        </div>
                                    </div>
                                    
                                    
                                    <div class="control-group">
                                        <label class="control-label" for="textfield4"></label>
                                        <div class="controls">
                                            
											<ul data-tabs="tabs" class="nav nav-tabs" id="tabs-language">
											
											<?php 
												foreach ($configure_languages['languages'] as $code => $row) :
											?>
												
										    	<li <?php echo $row['is_default'] ?  'class="active"' : ''; ?>>
										    		<a data-toggle="tab" href="#tab_id_<?php echo $code; ?>">
										    			<i class="icon-cogs"></i>&nbsp;<?php echo $row['name']; ?>							    		</a>
										    	</li>
										    	
											<?php endforeach; ?>
																				    	
										    </ul>							        
                                        
										    <div style="overflow: hidden;" class="tab-content" id="my-tab-language">
										    
										    <?php 
												foreach ($configure_languages['languages'] as $code => $row) :
											?>
										    															    
										        <div id="tab_id_<?php echo $code; ?>" class="tab-pane <?php echo $row['is_default'] ? 'active' : ''; ?>">
										        
				                                    <div class="control-group">
				                                        <label class="control-label" for="textfield4">Name (<?php echo $code; ?>)</label>
				                                        <div class="controls">
				                                            <input type="text" class="input-xlarge" value="<?php echo h($rowCat["name_{$code}"]); ?>" id="name_<?php echo $code; ?>" name="name_<?php echo $code; ?>">
				                                        </div>
				                                    </div>
				                                    
				                                    <div class="control-group">
				                                        <label class="control-label" for="textfield4">Description (<?php echo $code; ?>)</label>
				                                        <div class="controls">
				                                            <input type="text" class="input-xlarge" value="<?php echo h($rowCat["description_{$code}"]); ?>" id="description_<?php echo $code; ?>" name="description_<?php echo $code; ?>">
				                                        </div>
				                                    </div>
				                                   
				                                    <div class="control-group">
				                                        <label class="control-label" for="textfield4">Icon (<?php echo $code; ?>)</label>
				                                        <div class="controls">
				                                            <input type="text" class="input-xlarge" value="<?php echo h($rowCat["icon_{$code}"]); ?>" id="icon_<?php echo $code; ?>" name="icon_<?php echo $code; ?>">
				                                        </div>
				                                    </div>
	
				                                    <div class="control-group">
				                                        <label class="control-label" for="textfield4">Image (<?php echo $code; ?>)</label>
				                                        <div class="controls">
				                                            <input type="text" class="input-xlarge" value="<?php echo h($rowCat["image_{$code}"]); ?>" id="image_<?php echo $code; ?>" name="image_<?php echo $code; ?>">
				                                        </div>
				                                    </div>			                                    
										        
										        </div>
										        
											<?php endforeach; ?>
										        
										    </div>                                            
                                            
                                            
                                        </div>
                                    </div>                                    
                                    
                                
									<div class="control-group">
                                       	<label class="control-label">Active</label>
                                       	<div class="controls">
                                          	<label class="checkbox">
                                            	<input type="checkbox" id="active" name="active" value="1" <?php echo n($rowCat["active"])==1?'checked':''; ?> >
                                          	</label>
                                       	</div>
                                    </div>                                    
			                                    
                                    <div class="control-group last">
                                        <label class="control-label" for="textfield4">Order</label>
                                        <div class="controls">
                                            <input type="text" class="input-mini" value="<?php echo n($rowCat["sort_order"]); ?>" id="sort_order" name="sort_order">
                                        </div>
                                    </div>
                                    
                                    <div class="form-actions">
                                       <button type="submit" class="btn btn-primary"><i class="icon-ok"></i> Save</button>
                                       <button type="button" class="btn">Cancel</button>
                                    </div>                                    
							    
</form>
                            
                            </div>                            
                                
                        </div>
                    </div>
                </div>
                <!-- END Main Content -->
                
<script type="text/javascript"> 								
    jQuery(document).ready(function ($) {
        $('#tabs').tab();
    });
</script>                                               
